package com.mogu_soup.game;

/**
 * Version: 2.1
 * Author: TangJun
 * Date: 2024-08-04
 * Note:
 */
public class LevelInfo {
    //不可外部实例化
    private LevelInfo(){}
    private static LevelInfo instance;
    public static int levelNum = 2;
    //获得单例
    public static LevelInfo getInstance() {
        if (instance == null) {
            instance = new LevelInfo();
        }
        return instance;
    }

    private int level;//关卡序号
    private int enemyNum;//敌人个数

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getEnemyNum() {
        return enemyNum;
    }

    public void setEnemyNum(int enemyNum) {
        this.enemyNum = enemyNum;
    }
}
